.home {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    color: #555;
    font-family: "dragon";
    background: url(../../static/images/home_bg.jpg) no-repeat;
    background-size: cover;

    .header {
        width: 100%;
        font-size: 1.6rem;
        line-height: 3rem;
        min-height: 5rem;
        text-align: center;
    }

    .navbar {
        display: flex;
        justify-content: flex-start;
        width: 50%;

        .navItem {
            width: 6.4rem;
            box-sizing: border-box;
            padding: 1rem;
            font-size: 4rem;
            color: #000;
            border: 5px solid #5a3332;
            box-shadow: 2px 2px 6px #555;
            border-radius: 10px;
            background: rgba(255,255,255,.7);
            cursor: pointer;
        
            &:hover {
                color: red;
                box-shadow: 4px 4px 12px red;
                border-color: red;
            }
        }
    }

    .boat {
        position: absolute;
        width: 12rem;
        height: 10rem;
        left: 80%;
        background: url(../../static/images/boat.png) no-repeat;
        background-size: 100% 100%;
        animation: boat 100s infinite;
    }

    .footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.3rem;
        text-align: center;
    }
}

@keyframes boat
{
    from {
        left: 100%;
    }

    to {
        left: -12rem;
    }
}

@media(min-width: 1101px) {
    .home {
        .navbar {
            margin: 150px;
            min-height: 100px;

            .navItem {
                margin-left: 60px;
                line-height: 5.6rem;
            }
        }

        .boat {
            display: none;
        }
    }
}

@media(min-width: 768px) and (max-width: 1100px) {
    .home {
        .navbar {
            display: flex;
            justify-content: space-around;
            width: 70%;
            margin: 150px auto;

            .navItem {
                line-height: 5rem;
            }
        }
    }
}

@media(min-width: 321px) and (max-width: 767px) {
    .home {
        .header {
            span {
                display: block;
            }
        }

        .navbar {
            display: flex;
            flex-direction: column;
            width: 70%;
            margin: 5rem auto 0;
    
            .navItem {
                width: 100%;
                padding: 0.5rem 0.5rem 0.5rem 1.5rem;
                font-size: 2rem;
                letter-spacing: 1rem;
                margin-bottom: 1rem;

                .tag {
                    text-align: center;
                }
            }
        }
    }
}

@media(max-width: 321px) {
    .home {
        .header {
            span {
                display: block;
            }
        }

        .navbar {
            display: flex;
            flex-direction: column;
            width: 70%;
            margin: 2rem auto 0;

            .navItem {
                width: 100%;
                box-sizing: border-box;
                padding: 0 0 0 1rem;
                font-size: 1.8rem;
                letter-spacing: 1rem;
                margin-bottom: 1rem;
    
                .tag {
                    text-align: center;
                }
            }
        }

        .boat {
            width: 8rem;
            height: 6rem;
        }
    }
}